package com.micangcaihang.micang.http;

import com.micangcaihang.common.http.BaseSubscriber;
import com.micangcaihang.common.http.exception.ApiException;
import com.micangcaihang.common.utils.ToastUtils;

/**
 * <pre>
 *     author : Fandy
 *     e-mail : fandayongfly@gmail.com
 *     time   : 2017/08/02
 *     update : 2017/08/02
 *     desc   :
 *     version: 1.0
 * </pre>
 */

public abstract class MiSubScriber<T> extends BaseSubscriber<T> {


    @Override
    protected void doOnError(ApiException e) {
        ToastUtils.showShort(e.getMessage());
    }

}
